{template admin/header}

	<form action="manage.php?m=hostel&a=add_type" method="post" name="search">
	<table cellspacing="1" cellpadding="4" width="100%" align="center" class="tableborder">
		<tr class="header">
			<td colspan="2">添加房型</td>
		</tr>
		<tr>
			<td class="altbg1" width="150">
			名称:
			</td>
			<td class="altbg2">
			<input name="name" type="text" value="" size="40" maxlength="50">		
			</td>
		</tr>
		<tr>
			<td class="altbg1" width="150">&nbsp;
			</td>
			<td class="altbg2">
				<button name="do" value='' type="submit" class="button">添加</button>
			</td>
		</tr>
		
	</table>
	</form>

	<form method="post" action="manage.php?m=hostel&a=del_type">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
			<tr class="header">
				<td width="30">
				<input class="checkbox" type="checkbox" name="chkall" onclick="checkall(this.form,'ids')" ></td>	
				<td>名称</td>
				<td width="160">操作</td>
			</tr>
			<!--{loop $list $item}-->
			<tr align="center">
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					<input class="checkbox" type="checkbox" name="ids[]" value="$item[id]" >
				</td>
				<td class="altbg1" style="border-bottom:1px dashed #ccc">
					{$item[name]}
				</td>
				<td class="altbg2" style="border-bottom:1px dashed #ccc">
					<a href="manage.php?m=hostel&a=del_type&ids={$item[id]}" onclick="return delete_confirm();">删除</a>&nbsp;
				</td>
			</tr>
			<!--{/loop}-->
		</table>
	
		<center><input class="button" type="submit" name="cronssubmit" value="删除所选" onclick="return delete_confirm();"></center>
	</form>
	
	<br />

<script type="text/javascript" src="templates/default/js/travel_info.js"></script>
